package com.wanbangee.marksystem.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.wanbangee.marksystem.entities.UStudent;

@Mapper
public interface UStudentDao {
	
	public boolean addStudent(UStudent student);
	
	public boolean updateStudent(UStudent student);
	
	public UStudent selectStudentByStuId(Integer stuId);
	
	public List<UStudent> selectStudentBySchId(Integer schId);
	
	public List<UStudent> selectStudentBySchIdAndGradId(Integer schId,Integer graId);
	
	public List<UStudent> selectStudentBySchIdAndGradIdAndClaId(Integer schId,Integer graId,Integer claId);
	
	public Integer selectCountByStuNoAndSchId(String stuNo,Integer schId);
	
	public Integer deleteStudent(Integer stuId);
	
}